<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <script crossorigin src="https://unpkg.zhimg.com/react@18/umd/react.production.min.js"></script>
  <script crossorigin src="https://unpkg.zhimg.com/react-dom@18/umd/react-dom.production.min.js"></script>
  <title>demo3</title>
</head>

<body>
  <div id="root"></div>
  <script>
    const rootElement = document.getElementById("root");
    const root = ReactDOM.createRoot(rootElement);
    // const ele = document.createElement("div");
    // ele.textContent = "Hello world!";
    // ele.className = "hello "   
    const ele = React.createElement('div', {
      children: 'Hello world',
      className: "Hello",
      id: 'demo3'
    });
    // rootElement.appendChild(ele);
    root.render(ele)
  </script>
</body>

</html>